package com.yfp.device.mapper;

import com.yfp.device.domain.OrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
* @author admin
* @description 针对表【order_detail】的数据库操作Mapper
* @createDate 2024-06-18 11:57:05
* @Entity domain.com.qfp.device.OrderDetail
*/
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    void batchUpdate(@Param("orderDetails") List<OrderDetail> orderDetails);

    List<OrderDetail> findByDetailIds(@Param("orderDetailIds") List<String> orderDetailIds);

    void updateDetails(@Param("ods") ArrayList<OrderDetail> ods);

    List<OrderDetail> getByOrderId(String orderId);

    void updateOrderDetail(@Param("detailList") List<OrderDetail> detailList);

    /**
     * 修改订单状态
     * @param orderDetailId
     */
    void updateOrderStatus(String orderDetailId);

    Boolean isAccomplish(String orderDetailId);

    /**
     * 根据订单号赋值排队时间
     * @param orderId
     */
    void awaitQueueTime(String orderId);
}




